package com.finance.system.file.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 文件系统表，存放文件的信息
 * </p>
 *
 * @author whdong
 * @since 2019-12-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tbl_file_system")
@ApiModel(value="FileSystemEntity对象", description="文件系统表，存放文件的信息")
public class FileSystemEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "文件名 ")
    private String fileName;

    @ApiModelProperty(value = "文件大小，，单位b")
    private Long fileSize;

    @ApiModelProperty(value = "文件扩展名 ")
    private String fileExtension;

    private String parentFolder;

    @ApiModelProperty(value = "年文件夹 ")
    private Integer yearFolder;

    @ApiModelProperty(value = "月文件夹 ")
    private Integer monthFolder;

    @ApiModelProperty(value = "文件md5值")
    private String fileMd5;

    @ApiModelProperty(value = "何时创建 ")
    private LocalDateTime createAt;


}
